package com.suxin.mqtt.domain;

import com.alibaba.fastjson.JSON;
import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * @author Tang
 * @classname MqMessage
 * @description [  ]
 * @date 2021/4/2 13:46
 */
@Data
@AllArgsConstructor
public class MqMessage {
    private String topic;
    private String payLoad;

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }
}